package com.lmabbe.common.datasources.mapper;

import com.lmabbe.common.datasources.core.LmabbeMapper;
import com.lmabbe.common.global.context.metadata.resource.Resource;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 初始化系统词典
 *
 * @author lmabbe
 */
@Mapper
public interface InitResourceMapper extends LmabbeMapper<Resource> {

    /**
     * 初始化系统菜单
     *
     * @param resources 系统菜单
     */
    void initResource(@Param("resources") List<Resource> resources);
}
